<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        let obj = {
            a: {
                b: {
                    c: 1
                }
            }
        }
        // 连续解构赋值
        let { a: { b: c } } = obj
        console.log(c);

        let obj2 = {
            a: {
                b: 2
            }
        }
        // 设置别名
        let { a: { b: data } } = obj2
        console.log(data);

    </script>
</body>

</html>